import { Controller } from 'egg';

class ProductController extends Controller {
  async index() {
    const { ctx } = this;
    const data = await ctx.service.product.getList(1, 10);
    ctx.body = {
      data,
    };
  }
}

module.exports = ProductController;
